package com.mengxj.anno;

import java.lang.reflect.Method;

/**
 * @author mengxj
 */

public class AnnoDemo {

    @MyAnno(value = "aaaaaaa", address = "吉林")
    private void sss(){

    }

    public static void main(String[] args) throws Exception {
        Class<?> cls = AnnoDemo.class;
        Method method = cls.getDeclaredMethod("sss");
        MyAnno myAnno = method.getDeclaredAnnotation(MyAnno.class);
        System.out.println(String.format("%s %s %s", myAnno.value(), myAnno.address(), myAnno.name()));
    }
}
